package main

import (
	"time"

	"github.com/gin-contrib/pprof"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	pprof.Register(r) // 注册pprof路由

	go func() {
		r.Run(":6060")
	}()

	for {
		sleepOneSecond()
	}
}

func sleepOneSecond() {
	time.Sleep(1 * time.Second)
}
